package cn.shentianlan.test;

public class Main {
    public static void main(String[] args) {
        split(12);
    }
    public static int split(int number) {
        if (number > 1) {
//            System.out.println("number = "+number);
            if (number % 2 != 0){
                int k = split((number + 1) / 2);
//                System.out.println("输出k = "+k);
                System.out.println(k);
            }
//            System.out.println("开始执行最后一条的结果number = "+number);
            System.out.println(split(number / 2));
        }
        return number;
    }
}